﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using System.Drawing.Design;

namespace ZLCMS.Web.SystemManage.Control
{
    public partial class JGridControl : System.Web.UI.UserControl
    {
        public JGridControl()
        {
            Columns = new ListItemCollection();

            DialogWidth = 400;
            DialogHeight = 250;
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public bool Readonly { get; set; }

        public int DialogWidth { get; set; }

        public int DialogHeight { get; set; }

        public string Value { get { return grid_json.Value; } set { grid_json.Value = value; } }

        public string EditorUrl { get; set; }

        public string OptionExt { get; set; }

        public string KeyColumnName { get; set; }

        public string OnRemove { get; set; }

        public string OnEdit { get; set; }

        [Editor("System.Web.UI.Design.WebControls.ListItemsCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
        public ListItemCollection Columns { get; set; }
    }
}